package li.kaeppe.travel.tracker.dao;

import java.util.List;

import li.kaeppe.travel.tracker.domain.Trip;
import li.kaeppe.travel.tracker.domain.User;

public interface TripDao {

	public Trip storeTrip(Trip trip);
	
	public List<Trip> getAllTrips();
	
	public List<Trip> getAllTrips(User user);
	
	public void deleteTrip(Trip trip);
	
	public Trip getTripById(long id);
	
	public Trip getTripByKey(String key, String user);
	
	public void updateCalculatedTripData(Trip trip);
	
}
